export const tableOption = {
  dialogDrag: true,
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuType: 'text',
  searchShow: false,
  viewBtn: true,
  searchMenuSpan: 6,
  column: [
    {
      label: '图片',
      prop: 'url',
      dataType: 'array',
      slot: true,
      formslot: true,
      tip: '图片比例建议1:1'
    },
    {
      label: '跳转页面',
      prop: 'page',
      type: 'select',
      dicData: [{
        label: '定做',
        value: '/pages/goods/goods-category/index'
      },{
        label: '充值中心',
        value: '/pages/user/user-balance/index'
      },{
        label: '热卖单品',
        value: '/pages/goods/goods-list/index?type=2'
      },{
        label: '新品首发',
        value: '/pages/goods/goods-list/index?type=1'
      },{
        label: '领取优惠券',
        value: '/pages/coupon/coupon-list/index'
      },{
        label: '我的余额',
        value: '/pages/user/user-balance-log/index'
      },{
        label: '我的卡券',
        value: '/pages/coupon/coupon-user-list/index'
      },{
        label: '我的订单',
        value: '/pages/order/order-list/index'
      }],
    },
    {
      label: '排序',
      prop: 'sort',
      type: 'number',
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }]
    },
    {
      label: '是否启用',
      prop: 'enable',
      type: 'radio',
      slot: true,
      rules: [{
        required: true,
        message: '请选择是否启用',
        trigger: 'blur'
      }],
      dicData: [{
        label: '关闭',
        value: '0'
      }, {
        label: '启用',
        value: '1'
      }]
    },
    {
      label: '创建时间',
      prop: 'createTime',
      editDisplay: false,
      addDisplay: false
    }
  ]
}
export const tableOption2 = {
  dialogDrag: true,
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuType: 'text',
  searchShow: false,
  column: [
    {
      label: '标签',
      prop: 'tag',
      rules: [{
        required: true,
        message: '请输入标签',
        trigger: 'blur'
      }, {
        max: 5,
        message: '长度在不能超过5个字符'
      }]
    },
    {
      label: '内容',
      prop: 'content',
      span: 24,
      rules: [{
        required: true,
        message: '请输入内容',
        trigger: 'blur'
      }]
    },
    {
      label: '是否启用',
      prop: 'enable',
      type: 'radio',
      slot: true,
      rules: [{
        required: true,
        message: '请选择是否启用',
        trigger: 'blur'
      }],
      dicData: [{
        label: '关闭',
        value: '0'
      }, {
        label: '启用',
        value: '1'
      }]
    },
    {
      label: '排序',
      prop: 'sort',
      type: 'number',
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }]
    },
    {
      label: '跳转页面',
      prop: 'page',
      type: 'textarea'
    },
    {
      label: '创建时间',
      prop: 'createTime',
      editDisplay: false,
      addDisplay: false
    }
  ]
}
